﻿using PoemGame.Domain.Seedwork;

namespace PoemGame.Domain.GameAggregate.Events
{
    /// <summary>
    /// 玩家离开游戏事件", "玩家离开游戏时产生
    /// </summary>
    public class PlayerLeaveGameEventDataLocal : BaseEventDataLocal
    {
        public PlayerLeaveGameEventDataLocal(Game game, Guid playerId, string playerUserName,
            DateTime date) :base(date,game)
        {
            GameId = game.Id;
            GameDescription = game.Description;
            PlayerId = playerId;
            PlayerUserName = playerUserName;
        }

        /// <summary>
        /// 游戏ID
        /// </summary>
        public Guid GameId { get; private set; }
        /// <summary>
        /// 游戏描述
        /// </summary>
        public string GameDescription { get; private set; }
        /// <summary>
        /// 玩家ID
        /// </summary>
        public Guid PlayerId { get; private set; }
        /// <summary>
        /// 玩家用户名
        /// </summary>
        public string PlayerUserName { get; private set; }
    }
}
